package com.yihu.beans.user;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;

import com.alibaba.fastjson.JSON;

@JsonIgnoreProperties(ignoreUnknown=true)
public class Priviledge implements Serializable{
	private long permitId;
	private long parentPermitId;
	private String permitName;
	private String desc;
	private int status;
	private int operationType;
	private List<Priviledge> childrens;
	
	public List<Priviledge> getChildrens() {
		return childrens;
	}
	public void setChildrens(List<Priviledge> childrens) {
		this.childrens = childrens;
	}

	private Date createAt = new Date();
	
	public Date getCreateAt() {
		return createAt;
	}
	public void setCreateAt(Date createAt) {
		this.createAt = createAt;
	}
	public long getParentPermitId() {
		return parentPermitId;
	}
	public void setParentPermitId(long parentPermitId) {
		this.parentPermitId = parentPermitId;
	}
	public long getPermitId() {
		return permitId;
	}
	public void setPermitId(long permitId) {
		this.permitId = permitId;
	}
	public String getPermitName() {
		return permitName;
	}
	public void setPermitName(String permitName) {
		this.permitName = permitName;
	}
	
	
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public int getOperationType() {
		return operationType;
	}
	public void setOperationType(int operationType) {
		this.operationType = operationType;
	}
	
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return JSON.toJSONString(this);
	}
	
	
	
}
